Repository navigation
컬렉션 옮기기 - 이미 포함된 컬렉션 비활성 처리 - #368
Open
dongglehada wants to merge 4 commits into
Open
dongglehada wants to merge 4 commits into
dongglehada wants to merge 4 commits into
Conversation
컬렉션 목록 조회 시 선택한 북마크를 함께 보내 각 컬렉션의 포함 상태를 받아온다. - CollectionResponse에 includedCount / allIncluded 추가 - fetchCollectionList에 bookmarkIds 파라미터 추가 (쿼리 인코더가 배열을 못 다뤄 콤마 문자열로 전달) - 선택한 북마크가 모두 포함된 컬렉션은 선택되지 않도록 차단 - 데모 앱에 포함 상태 확인용 진입 경로와 목 데이터 추가 UI는 변경하지 않았다. 데모 타깃이 dev에서 빌드되지 않아 함께 수정한다. - MockCollectionRepository에 deleteBookmarksToCollection 구현 누락 - SceneDelegate의 CollectionEditFactoryImpl 생성자 인자 누락
- FolderCell의 체크 상태를 Bool에서 unselected / selected / included 3상태로 변경 - included는 체크 표시 없이 회색 빈 박스로 그리고 행 배경과 제목도 회색 처리 - 선택한 북마크의 포함 개수를 알려주는 서브타이틀 추가 - included 컬렉션을 탭하면 안내 팝업을 띄우고 선택 상태는 그대로 유지
직접 그린 테두리 때문에 선택 상태와 미선택 상태의 형태가 달라져 있었다. CheckBoxButton과 동일하게 같은 아이콘에 tint만 바꾸고, 선택할 수 없는 상태는 checkSquareBlank 에셋으로 구분한다.
이전 커밋에서 디자인시스템 관례를 따른다며 미선택을 회색 체크로 바꿨으나 스펙의 TO-BE 범례는 미선택을 주황 테두리 빈 박스로 정의하고 있다. - 미선택: 주황 테두리 + primary50 배경, 체크 표시 없음 - 선택: 주황 채움 + 흰 체크 - 모두 포함: 회색 테두리 + neutral100 배경, 체크 표시 없음
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 이슈
✅ 작업 사항
1. 컬렉션별 북마크 포함 상태 조회
CollectionResponse.swift,CollectionListResponseDTO.swiftbookmarkIds를 함께 받으면 컬렉션마다includedCount(선택한 북마크 중 포함된 개수),allIncluded(전부 포함 여부)를 내려줍니다nil이라bookmarkIds없이 호출하던 기존 경로는 그대로 동작합니다2.
fetchCollectionList에bookmarkIds파라미터 추가CollectionRepository.swift,CollectionRepositoryImpl.swift,CollectionListReactor.swiftBookmarkModalReactor는 모달에 들어온bookmarkIds를 그대로 실어 보내고,CollectionListReactor는nil을 넘깁니다3. 모두 포함된 컬렉션 선택 차단
BookmarkModalReactor.swiftallIncluded == true인 컬렉션은 탭해도 선택되지 않고Route.alreadyIncluded를 방출합니다4. 셀 UI — 포함 상태 표시
FolderCell.swift,BookmarkModalViewController.swiftBool→unselected / selected / included3상태로 변경included는 체크 표시 없는 빈 박스(checkSquareBlank)로 그리고 행 배경과 제목도 회색 처리neutral300↔primary700으로 바꿉니다 (CheckBoxButton과 동일)5. 데모 앱 진입 경로
MenuViewController.swift,SceneDelegate.swiftBookmarkModal – 컬렉션 옮기기메뉴 추가 (풀 시트로 바로 열림)6. (범위 밖) 데모 타깃 빌드 오류 수정
dev에서MLSBookmarkFeatureExample스킴이 컴파일되지 않는 상태여서 함께 고쳤습니다. 앱 본체는 Mock을 쓰지 않아 영향이 없었고 데모 스킴만 막혀 있었습니다.MockCollectionRepository에deleteBookmarksToCollection구현 추가SceneDelegate의CollectionEditFactoryImpl생성자에collectionRepository인자 추가별도 PR로 빼는 게 낫다면 말씀해주세요.
🧪 테스트
데모 앱에서 직접 확인했습니다.
MLSBookmarkFeatureExample스킴 빌드 통과 (iPhone 17 Pro 시뮬레이터)MLS스킴 빌드 통과 (시뮬레이터 / 실기기 서명 포함)